<?php

class m130825_225024_alter_table_menu extends CDbMigration
{
	public function safeUp()
	{
		$connection=Yii::app()->db;
		$sql="ALTER TABLE `menu` CHANGE COLUMN `name` `name` VARCHAR(250) NOT NULL  , CHANGE COLUMN `id_pages` `id_pages` VARCHAR(50) NOT NULL  , CHANGE COLUMN `sort` `sort` INT(10) NOT NULL  , CHANGE COLUMN `id_parent` `id_parent` INT(10) NOT NULL  ;
";
		$command=$connection->createCommand($sql);
		$command->execute();
	}

	public function safeDown()
	{
		return TRUE;
	}
}